#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QNetworkAccessManager>

class TextItemWidget;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_2_clicked();

    void SlotcalendarWidgetselectionChanged(const QDate &date);

    void postBack(QNetworkReply* reply);
    //导入图片模版
    void on_actionPic_triggered();
    //按钮使能
    void on_btn_enable_clicked();
    //添加文字
    void on_btn_AddText_clicked();
    //item关闭
    void SlottabCloseRequested(int index);
    //导入EXCEL
    void on_action_excel_triggered();
    //导入word模版
    void on_actionWORD_triggered();
    //导入PDF模版
    void on_actionPDF_triggered();

private:
    bool openPDF(const QString &Path);
private:
    Ui::MainWindow *ui;
    QNetworkAccessManager* manager;
    QMap<int, TextItemWidget*> TextItemWidgetHash;
    QList<QList<QVariant>> m_totaldata;
};

#endif // MAINWINDOW_H
